package com.jzo2o.foundations.mapper;

import com.jzo2o.foundations.model.domain.ServeSync;
import com.jzo2o.foundations.model.dto.response.ServeTypeDTo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ServeCacheMapper {
    /**
     * 服务分类列表
     */
    List<ServeTypeDTo> serveTypeList(@Param("regionId") Long regionId);

    /**
     * 首页热门服务列表
     */
    List<ServeSync> hotServeList(@Param("regionId") Long regionId);

    /**
     * 根据id查询服务
     */
    ServeSync getId(@Param("id") Long id);
}
